package demo;

public class UserService {
    private final UserDao userDao;

    public UserService(UserDao userDao) {
        this.userDao = userDao;
    }

    public void hello() {
        System.out.print("UserService.hello() -> ");
        userDao.query();
    }
}